package handler.post;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.Button;
import org.jaaksi.commondemo.R;
import org.jaaksi.commondemo.util.LogUtil;

/**
 * 创建时间：2017年12月28日12:09 <br>
 * 作者：fuchaoyang <br>
 * 描述：
 */

public class TestButton extends Button {
  public TestButton(Context context) {
    super(context);
  }

  public TestButton(Context context, AttributeSet attrs) {
    super(context, attrs);
  }

  public TestButton(Context context, AttributeSet attrs, int defStyleAttr) {
    super(context, attrs, defStyleAttr);
  }

  public TestButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
    super(context, attrs, defStyleAttr, defStyleRes);
  }

  @Override protected void onAttachedToWindow() {
    super.onAttachedToWindow();
    LogUtil.e("TestButton", "button onAttachedToWindow");
  }

  @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) {
    super.onSizeChanged(w, h, oldw, oldh);
    LogUtil.e("TestButton", "button onSizeChanged");
  }

  @Override protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
    LogUtil.e("TestButton", "button onDraw");
  }
}
